package com.aboo.word2excel.attr;

/**
 * @author louan
 * @date 2025-01-07
 * @description
 */
public class CellAttribute {

    private int rowNo;
    private int colNo;
    private int rowSpan;
    private int colSpan;
    private int width;
    private int height;
    private String text;
    private String fontFamily;
    private int fontSize;
    private String vertAlignName;
    private String horizAlignName;

    public static CellAttribute of(int rowNo, int colNo, int rowSpan, int colSpan, String text) {
        CellAttribute cellAttribute = new CellAttribute();
        cellAttribute.rowNo = rowNo;
        cellAttribute.colNo = colNo;
        cellAttribute.rowSpan = rowSpan;
        cellAttribute.colSpan = colSpan;
        cellAttribute.text = text;
        return cellAttribute;
    }

    public static CellAttribute of(int rowNo, int colNo, int rowSpan, int colSpan, int width, int height, String text) {
        CellAttribute cellAttribute = new CellAttribute();
        cellAttribute.rowNo = rowNo;
        cellAttribute.colNo = colNo;
        cellAttribute.rowSpan = rowSpan;
        cellAttribute.colSpan = colSpan;
        cellAttribute.width = width;
        cellAttribute.height = height;
        cellAttribute.text = text;
        return cellAttribute;
    }

    public int getRowNo() {
        return rowNo;
    }

    public void setRowNo(int rowNo) {
        this.rowNo = rowNo;
    }

    public int getColNo() {
        return colNo;
    }

    public void setColNo(int colNo) {
        this.colNo = colNo;
    }

    public int getRowSpan() {
        return rowSpan;
    }

    public void setRowSpan(int rowSpan) {
        this.rowSpan = rowSpan;
    }

    public int getColSpan() {
        return colSpan;
    }

    public void setColSpan(int colSpan) {
        this.colSpan = colSpan;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public String getFontFamily() {
        return fontFamily;
    }

    public void setFontFamily(String fontFamily) {
        this.fontFamily = fontFamily;
    }

    public int getFontSize() {
        return fontSize;
    }

    public void setFontSize(int fontSize) {
        this.fontSize = fontSize;
    }

    public String getVertAlignName() {
        return vertAlignName;
    }

    public void setVertAlignName(String vertAlignName) {
        this.vertAlignName = vertAlignName;
    }

    public String getHorizAlignName() {
        return horizAlignName;
    }

    public void setHorizAlignName(String horizAlignName) {
        this.horizAlignName = horizAlignName;
    }

    @Override
    public String toString() {
        return "CellAttribute{" +
                "rowNo=" + rowNo +
                ", colNo=" + colNo +
                ", rowSpan=" + rowSpan +
                ", colSpan=" + colSpan +
                ", width=" + width +
                ", height=" + height +
                ", text='" + text + '\'' +
                ", fontFamily='" + fontFamily + '\'' +
                ", fontSize=" + fontSize +
                ", vertAlignName='" + vertAlignName + '\'' +
                ", horizAlignName='" + horizAlignName + '\'' +
                '}';
    }
}
